<template>
	<view class="columnbox wdh-100 content">
		<view class="rowbox wdh-100 search-box spb">
			<input v-model="name" confirm-type="search" @confirm="searchInfo" placeholder="请输入商家名称" />
			<view @click="searchInfo" class="rowbox" style="padding-left: 100rpx;"> <u-icon name="search" size="40rpx"
					color="#1E72CA"></u-icon></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name: ''
			};
		},
		methods: {
			searchInfo() {
				uni.navigateTo({
					url: '/pages/index/search/list?name=' + this.name
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		background: #F7F7F7;
		min-height: 100vh;
		justify-content: flex-start;
		padding: 20rpx 20rpx;
	}

	.search-box {
		background: #fff;
		height: 70rpx;
		border-radius: 100rpx;
		border: #dde0e0 solid 1px;
		padding: 0 20rpx;

		input {
			font-size: 28rpx;
			width: 500rpx;
		}
	}
</style>